import { RouterModule, Routes } from '@angular/router'

import { FollowComponent } from './follow.component'
import { IndexComponent } from './index/index.component'

const appRoutes: Routes = [
  {
    path: '',
    component: FollowComponent,
    children: [
      {
        path: '',
        children: [{ path: '', redirectTo: 'index', pathMatch: 'full' }, { path: 'index', component: IndexComponent }]
      }
    ]
  }
]

export const router = RouterModule.forChild(appRoutes)
